package club.ljwang.controller;

import club.ljwang.entity.Result;
import club.ljwang.service.VipService;
import com.alibaba.dubbo.config.annotation.Reference;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;
import java.util.Map;

@RequestMapping("vip")
@RestController
public class VipController {
    @Reference
    private VipService vipService;

    @RequestMapping("getGender")
    public Result getGender(){
        List<Map> mapList=vipService.getGender();
        return new Result(true,"",mapList);
    }

    @RequestMapping("getAge")
    public Result getAge(){
        List<Map> mapList=vipService.getAge();
        return new Result(true,"",mapList);
    }

}
